package nl.weeaboo.sh.danmaku.commands;

import nl.weeaboo.sh.danmaku.ShotModel;
import nl.weeaboo.sh.danmaku.Spell;
import nl.weeaboo.sh.danmaku.SpellBook;
import nl.weeaboo.sh.danmaku.Universe;

public class TPos extends Spell {

	private float x, y;
	
	public TPos(float x, float y) {
		this.x = x;
		this.y = y;
	}
	protected TPos(TPos t) {
		super(t);		
		x = t.x;
		y = t.y;
	}
	
	public TPos clone() {
		return new TPos(this);
	}
	
	@Override
	public void step(Universe u, SpellBook sb, ShotModel s) {
		s.setPos(x, y);
		finish();
	}
	
}
